package com.ranjiaqi.homework;

import org.junit.Test;

import java.util.function.Supplier;

/**
 * @ClassName MainTest
 * @Description TODO
 * @Author hp
 * @Date 2021/7/6 18:20
 * @Version 1.0
 **/
public class MainTest {

    @Test
    public void ObjectRefence(){
        printUP("Hello"::toUpperCase);
    }

    public String printUP(Supplier<String> sup){
        return sup.get();
    }
}
